package com.sen.patterns.creational.builder.ex2;

public class BusBuilder extends AutoBuilder {
	private Bus bus;
	
	public void buildBase() {
		System.out.println("BusBuilder-->buildBase()");
		bus = new Bus();
	}
	
	// 装配方法不一样
	public void addAutomobileItem(PartItem item) {
		System.out.println("BusBuilder-->addAutomobileItem()");
		bus.add(item);
	}
	
	// 测试汽车方法
	public void testAutomobile() {
		System.out.println("BusBuilder-->checkAutomobileItem()");
	}
	
	// 返回装配好的汽车
	public Automobile getFinishedAutomobile() {
		System.out.println("BusBuilder-->getFinishedAutomobile()");
		return bus;
	}
}
